Release 10.1A: OpenEdge Development:
ProDataSets
REJECT-CHANGES and REJECT-ROW-CHANGES methods
As a complement to
ACCEPT-CHANGES, there is also aREJECT-CHANGESmethod to restore part or all of the origin ProDataSet to its original state before a change was made:
Like
ACCEPT-CHANGES, this can also be executed on a single temp-table buffer handle within the ProDataSet, as shown:
This is normally done automatically by
MERGE-CHANGESwhen aREJECTEDrow, table, or ProDataSet is encountered. You can also run it yourself to control just which changes are reflected in a ProDataSet and which are undone.As with other methods, there is also a method to reject only a single row, as shown:
The methods
REJECT-CHANGESandREJECT-ROW-CHANGESrestore one more of the original ProDataSet rows by copying the before-table rows back to the corresponding after-tables, deleting the before-table rows and resetting theROW-STATEin the after-table rows toROW-UNMODIFIED. When theREJECT-CHANGESmethod is executed on a ProDataSet handle, all modified tables in the ProDataSet are rejected. When executed on a buffer-handle, only changes to that buffer’s temp-table are rejected.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |